package com.cskaoyan.mall.bean.vo;

import com.cskaoyan.mall.bean.Brand;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author: dyj
 * @Date: 2021/1/10 16:56
 * @Description 添加品牌制造商信息功能（create） 回显功能
 */
@Data
@NoArgsConstructor
public class BrandCreateVO {

    private int id;

    private String name;

    private String desc;

    private BigDecimal floorPrice;

    private String addTime;

    private String updateTime;

    public BrandCreateVO(Brand brand) {
        this.id = brand.getId();
        this.desc = brand.getDesc();
        this.floorPrice = brand.getFloorPrice();
        this.name = brand.getName();
        this.addTime = brand.getAddTime();
        this.updateTime = brand.getUpdateTime();
    }
}
